package com.bub.pay.core.entity.vo.merchant;

import com.bub.pay.framework.common.base.BaseVo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author: wing
 * @Date: 2019/4/10 13:46
 */
public class MerchantUserVo extends BaseVo {
    /**
     * 用户名 登录名
     */
    @NotBlank(message = "用户登录名不能为空")
    private String userName;

    /**
     * 昵称
     */
    @Size(min = 2, max = 10, message = "昵称长度应为2-10位")
    private String nickName;

    /**
     * 角色id
     */
    @NotNull(message = "请选择用户角色")
    private Long roleId;

//    /**
//     * 绑定IP
//     */
//    @NotBlank(message = "请绑定用户登录ip")
//    private String userBindIp;

    /**
     * 登录密码
     */
    @NotBlank(message = "请设置用户登录密码")
    private String password;

    /**
     * 确认登录密码
     */
    @NotBlank(message = "请确认登录密码")
    private String confirmPassword;

    /**
     * 员工支付密码
     */
    @NotBlank(message = "请设置员工支付密码")
    private String userPayPass;

    /**
     * 确认员工支付密码
     */
    @NotBlank(message = "请确认员工支付密码")
    private String confirmUserPayPass;

    /**
     * 谷歌验证码
     */
    @NotNull(message = "请输入谷歌验证码")
    private Long googleCode;

    /**
     * 当前登录商户id
     */
    private Long extendId;

    private Long id;

    private String googleSecret;

    private Integer state;

    private Integer pageNo = 1;

    private Integer pageSize = 15;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

//    public String getUserBindIp() {
//        return userBindIp;
//    }
//
//    public void setUserBindIp(String userBindIp) {
//        this.userBindIp = userBindIp;
//    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

    public String getUserPayPass() {
        return userPayPass;
    }

    public void setUserPayPass(String userPayPass) {
        this.userPayPass = userPayPass;
    }

    public String getConfirmUserPayPass() {
        return confirmUserPayPass;
    }

    public void setConfirmUserPayPass(String confirmUserPayPass) {
        this.confirmUserPayPass = confirmUserPayPass;
    }

    public Long getGoogleCode() {
        return googleCode;
    }

    public void setGoogleCode(Long googleCode) {
        this.googleCode = googleCode;
    }

    public Long getExtendId() {
        return extendId;
    }

    public void setExtendId(Long extendId) {
        this.extendId = extendId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoogleSecret() {
        return googleSecret;
    }

    public void setGoogleSecret(String googleSecret) {
        this.googleSecret = googleSecret;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        if (pageSize > 300) this.pageSize = 300;
        this.pageSize = pageSize;
    }
}
